<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">中心基本情况</div>
	<table class="t_css" id="basic_tab" width="100%" border="0" cellpadding="0"
	    cellspacing="1">
		<col style="width: 20%" />
		<col style="width: 13%" />
		<col style="width: 13%" />
		<col style="width: 13%" />
		<col style="width: 14%" />
		<col style="width: 13%" />
		<col style="width: 14%" />
		<tr >
			<td align="right">中心名称：</td>
			<td colspan="6">
				<x:out select="$xmlData/data/proposal/zh_title"/>
			</td>
		</tr>
		<tr >
			<td align="right">疾病领域临床专科：</td>
			<td colspan="6">
				<x:out select="$xmlData/data/proposal/disease_field"/>
			</td>
		</tr>
		<tr>
			<td align="right">归口管理单位：</td>
			<td colspan="3">
				<x:out select="$xmlData/data/proposal/recomend_org_name" />
			</td>
			<td align="right">申报日期：</td>
			<td colspan="2" >
				<x:out select="$xmlData/data/proposal/submit_date" />
			</td>
		</tr>

		<tr>
			<td align="right" >依托单位：</td>
			<td colspan="6">
				<x:out select="$xmlData/data/organizations/organization/org_name" />
			</td>
		</tr>
		<tr>
			<td align="right">中心主任：</td>
			<td align="right">姓名：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_psnname"/>
			</td>
			<td align="right">职务：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_position"/>
			</td>
			<td align="right">职称：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_prof_title_name"/>
			</td>
		</tr>
		<tr>
			<td align="right" rowspan="2">中心联系人：</td>
			<td align="right">姓名：</td>
			<td>
				<x:out select="$xmlData/data/proposal/contact_psn_cname" />
			</td>
			<td align="right">职务：</td>
			<td>
				<x:out select="$xmlData/data/proposal/contact_psn_position" />
			</td>
			<td  align="right" >职称：</td>
			<td  >
				<x:out select='$xmlData/data/proposal/contact_prof_title_name' />
			</td>

		</tr>
		<tr>
			<td align="right">电话：</td>
			<td>
				<x:out select="$xmlData/data/proposal/contact_psn_mobile"/>
			</td>
			<td align="right">传真：</td>
			<td>
				<x:out select="$xmlData/data/proposal/contact_psn_fax"/>
			</td>
			<td align="right">邮箱：</td>
			<td>
				<x:out select="$xmlData/data/proposal/contact_psn_email"/>
			</td>
		</tr>
</table> 
			
	
<script type="text/javascript">
	function initTreeValueExt(treeId, treeNode) {
		if ((treeNode && treeNode.isParent)) {
			scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
			return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
	}
	
function initControlValue(objId){
	    
	    var name="";
	    var obj=$("#"+objId);
	    if(obj.is("select")){
	        name=obj.attr("name");
	        obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
	        $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
	    }
	   
	    else if(obj.is(":radio")){
	        name=obj.attr("name");
	        if(obj.is(":checked")){//如果被选中
	            //alert($("#"+objId).val());        
	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	            $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
	        }
	        else{
	            
	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
	        }
	    }else if(obj.is(":checkbox")){
	        name=obj.attr("name");
	        if(obj.is(":checked"))//如果被选中
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	        else
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
	    }else{
	        name=obj.attr("id");
	        obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
	        obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
	    }   
	}


	
	$(function(){
		/*initControl11();*/
		$("#tab1").click();
		$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
		$("#fragment-tab1 select").addClass("select_width");

		$("table.t_css").each(function(){  
		    $(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
		    $(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
		});
		})

</script>
